package com.ezandroid.library.network.download;

/**
 * Task执行完毕后返回的结果
 *
 * @author Tsimle
 */
public class DownFileResult {

    private int mCode; // 状态码，一般为HTTP的响应码
    private DownFileTask mTask; // 任务对象本身
    private Object mContent; // 任务处理结果对象。也可以是错误消息

    public DownFileResult() {
    }

    public DownFileResult(int stateCode, DownFileTask task, Object result) {
        super();
        this.mCode = stateCode;
        this.mTask = task;
        this.mContent = result;
    }

    public DownFileTask getTask() {
        return mTask;
    }

    public void setTask(DownFileTask task) {
        this.mTask = task;
    }

    public int getCode() {
        return mCode;
    }

    public void setCode(int code) {
        this.mCode = code;
    }

    public Object getContent() {
        return mContent;
    }

    public void setContent(Object retObj) {
        this.mContent = retObj;
    }
}
